package com.example.demo.mapper;

import com.example.demo.model.BlogInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface BlogInfoMapper {
    @Select("select * from blog where delete_flag=0")
    List<BlogInfo> getBlogLists();

    @Select("select* from blog where id=#{id}")
    BlogInfo getBlogInfo(Integer id);
}
